<template>
  <div class="router-content">
    <inside v-for="(div, index) in article" :key="index" :title="div.title" :contents="div.contents" :urls="div.urls"></inside>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
import inside from '@/components/inside'
export default {
  name: 'index',
  components: {
    inside
  },
  data () {
    return {
      menus: [],
      article: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
    this.write()
  },
  methods: {
    write () {
      this.article = [
        {
          title: '批量充值日志',
          contents: [
            '在批量充值日志显示的是充值导入的记录，可以根据日期进行查询，也可以选择持卡人类别来查询。'
          ],
          urls: [
            '/static/imgs/card/rechargelist_1.png'
          ]
        }
      ]
    }
  }
}
</script>
<style>
</style>
